package com.sj.common.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class CommonProperties {

    public static final String TYPE_DEFAULT = "default";
    public static final String TYPE_SF = "sf";
    public static final String REDIS_DEFAULT = "Lettuce";
    public static final String REDIS_JEDISCLUSTER = "JedisCluster";
    private String redis_type = "default";
    private String type = "default";
    private int step = 1000;
    private String pre_key = "";

    /**
     * 生成rid相关配置
     */
    private Rid rid = new Rid();

    @Data
    public static class Rid {

        /**
         * rid中行政区划配置
         */
        private String admdvs = "100000";

        /**
         * rid中分组标识配置
         */
        private String groupId = "14";

    }

    /**
     * 当前系统编码
     */
    private String currentSysCodg = "mbs";

    /**
     * 根菜单的上级ID（如果为-1说明这个菜单为根菜单）
     */
    private String rootMenuParentId = "-1";

    /**
     * 行政区划中根级别的编码
     */
    private String rootAdmdvs = "000000";

    /**
     * 行政区划中根级别的编码
     */
    private String countryAdmdvs = "100000";

    /**
     * 是否含有级别为0的行政区划
     */
    private boolean hasLevelZeroAdmdvs = true;

}

